import http from '@/utils/http';
import { baseUrl } from './commonApi'

const paths = {
    getTopTeacher: `${baseUrl}/top-teacher`,
    getTeacherDetail: `${baseUrl}/top-teacher/{id}`,
};

export function getTopTeacher(data, callback) {
    return http.get(paths.getTopTeacher, { data,noLogin:true }, callback)
}
export function getTeacherDetail(id, data, callback) {
    var tPath = paths.getTeacherDetail.replace('{id}', id);
    return http.get(tPath, { data,noLogin:true }, callback)
}